<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css" integrity="sha256-mUZM63G8m73Mcidfrv5E+Y61y7a12O5mW4ezU3bxqW4=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"zhengmingpei.gitee.io","root":"/","images":"/images","scheme":"Pisces","darkmode":false,"version":"8.8.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/js/config.js"></script>
<meta property="og:type" content="website">
<meta property="og:title" content="郑明培的个人博客">
<meta property="og:url" content="https://zhengmingpei.gitee.io/page/2/index.html">
<meta property="og:site_name" content="郑明培的个人博客">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="zhengmingpei">
<meta property="article:tag" content="编程,软件,个人感悟">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://zhengmingpei.gitee.io/page/2/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":true,"isPost":false,"lang":"zh-CN","comments":"","permalink":"","path":"page/2/index.html","title":""}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>郑明培的个人博客</title>
  




  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">郑明培的个人博客</h1>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/" rel="section"><i class="home fa-fw"></i>首页</a></li>
        <li class="menu-item menu-item-archives"><a href="/archives" rel="section"><i class="archive fa-fw"></i>归档</a></li>
        <li class="menu-item menu-item-about"><a href="/about" rel="section"><i class="user fa-fw"></i>关于</a></li>
        <li class="menu-item menu-item-categories"><a href="/categories" rel="section"><i class="th fa-fw"></i>分类</a></li>
        <li class="menu-item menu-item-tags"><a href="/tags" rel="section"><i class="tags fa-fw"></i>标签</a></li>
  </ul>
</nav>




</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-overview-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">zhengmingpei</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives">
          <span class="site-state-item-count">36</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories">
        <span class="site-state-item-count">4</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags">
        <span class="site-state-item-count">41</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/zhengmingpei" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;zhengmingpei" rel="noopener" target="_blank"><i class="github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://gitee.com/zhengmingpei" title="gitee → https:&#x2F;&#x2F;gitee.com&#x2F;zhengmingpei" rel="noopener" target="_blank">gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://space.bilibili.com/32918983" title="bilibili → https:&#x2F;&#x2F;space.bilibili.com&#x2F;32918983" rel="noopener" target="_blank">bilibili</a>
      </span>
  </div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner index posts-expand">

    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2016/09/12/LinuxShellScriptingCookbook1/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2016/09/12/LinuxShellScriptingCookbook1/" class="post-title-link" itemprop="url">LinuxShellScriptingCookbook1</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2016-09-12 15:00:00" itemprop="dateCreated datePublished" datetime="2016-09-12T15:00:00+08:00">2016-09-12</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 11:21:04" itemprop="dateModified" datetime="2021-11-28T11:21:04+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%9C%A8%E5%8C%97%E4%BA%AC/" itemprop="url" rel="index"><span itemprop="name">在北京</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>《Linux Shell Scripting Cookbook》是一本不错的介绍bash shell脚本编写技术的书，除了介绍基础知识，书中还提到了很多写脚本时的小技巧，值得借鉴。</p>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2016/09/12/LinuxShellScriptingCookbook1/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2016/09/09/%E8%AE%BE%E7%BD%AEhexo/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2016/09/09/%E8%AE%BE%E7%BD%AEhexo/" class="post-title-link" itemprop="url">设置hexo</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2016-09-09 15:00:00" itemprop="dateCreated datePublished" datetime="2016-09-09T15:00:00+08:00">2016-09-09</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 12:35:16" itemprop="dateModified" datetime="2021-11-28T12:35:16+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%9C%A8%E5%8C%97%E4%BA%AC/" itemprop="url" rel="index"><span itemprop="name">在北京</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>hexo是一个使用了nodejs的静态博客生成器。可以使用markdown书写文档，然后使用hexo生成可读性更强的网页文件。</p>
<h2 id="为什么使用hexo"><a href="#为什么使用hexo" class="headerlink" title="为什么使用hexo"></a>为什么使用hexo</h2><h3 id="书写文档存在的问题"><a href="#书写文档存在的问题" class="headerlink" title="书写文档存在的问题"></a>书写文档存在的问题</h3><p>写用于share的文档，太多时间用于使用office处理文档(一般是doc)中的代码，插图和正文的格式，效率过低，而且无法进行版本管理。</p>
<p>鉴于doc这类格式的缺点，推荐使用markdown。</p>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2016/09/09/%E8%AE%BE%E7%BD%AEhexo/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2016/09/05/%E4%BD%BF%E7%94%A8%E8%84%9A%E6%9C%AC%E4%BB%8E%E7%BD%91%E9%A1%B5%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2016/09/05/%E4%BD%BF%E7%94%A8%E8%84%9A%E6%9C%AC%E4%BB%8E%E7%BD%91%E9%A1%B5%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6/" class="post-title-link" itemprop="url">使用脚本从网页批量下载文件</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2016-09-05 15:00:00" itemprop="dateCreated datePublished" datetime="2016-09-05T15:00:00+08:00">2016-09-05</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 11:18:20" itemprop="dateModified" datetime="2021-11-28T11:18:20+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%9C%A8%E5%8C%97%E4%BA%AC/" itemprop="url" rel="index"><span itemprop="name">在北京</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <h2 id="Before"><a href="#Before" class="headerlink" title="Before"></a>Before</h2><p>Bash Shell具备强大的功能，结合linux下的很多命令行工具，可以高效地完成很多任务。</p>
<p>比如，在做安卓应用的兼容性测试中，需要获取大量的应用给待测设备安装，那么在这种情况下，写一个脚本，可以高效地完成这个任务。以此为例，这篇博客的任务就是，使用脚本从网页批量下载安卓应用APK文件。</p>
<h2 id="Html"><a href="#Html" class="headerlink" title="Html"></a>Html</h2><p>我计划下载的文件在<a target="_blank" rel="noopener" href="http://shouji.baidu.com/rank/features/classic/">这个网址</a>，这是百度的安卓应用商店下面的一个排行榜。</p>
<p>查看这个html页面可以看到下面显示的应用存在以下部分：</p>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2016/09/05/%E4%BD%BF%E7%94%A8%E8%84%9A%E6%9C%AC%E4%BB%8E%E7%BD%91%E9%A1%B5%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2016/08/10/ACRA%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90%E6%80%BB%E7%BB%93/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2016/08/10/ACRA%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90%E6%80%BB%E7%BB%93/" class="post-title-link" itemprop="url">ACRA源码分析总结</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2016-08-10 15:00:00" itemprop="dateCreated datePublished" datetime="2016-08-10T15:00:00+08:00">2016-08-10</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 11:14:49" itemprop="dateModified" datetime="2021-11-28T11:14:49+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%9C%A8%E5%8C%97%E4%BA%AC/" itemprop="url" rel="index"><span itemprop="name">在北京</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <h2 id="init-初始化"><a href="#init-初始化" class="headerlink" title="init()初始化"></a>init()初始化</h2><h3 id="首次初始化"><a href="#首次初始化" class="headerlink" title="首次初始化"></a>首次初始化</h3><p>进行首次初始化，应用反射机制，分析app对象。</p>
<p>如果<code>@ReportCrashes</code>中没有做设置则报错，否则做第二步初始化。</p>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2016/08/10/ACRA%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90%E6%80%BB%E7%BB%93/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2016/02/03/vim-youcompleteme/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2016/02/03/vim-youcompleteme/" class="post-title-link" itemprop="url">vim配置youcompleteme插件</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2016-02-03 15:00:00" itemprop="dateCreated datePublished" datetime="2016-02-03T15:00:00+08:00">2016-02-03</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 12:34:28" itemprop="dateModified" datetime="2021-11-28T12:34:28+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%A4%A7%E5%AD%A6/" itemprop="url" rel="index"><span itemprop="name">大学</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <h2 id="Before-reading"><a href="#Before-reading" class="headerlink" title="Before reading"></a>Before reading</h2><p><strong>Last update on 2016-07-31.</strong><br>本文中所有配置运行于2016年2月， 笔者因为现在上班了，工作环境下( ubuntu12.04 )主要写shell,markdown,vimwiki和纯文本，所以目前没有使用这款功能强大的插件。<br>文中所有操作未验证目前是否有效，仅供参考。</p>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2016/02/03/vim-youcompleteme/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2015/11/28/vagrant/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2015/11/28/vagrant/" class="post-title-link" itemprop="url">使用Vagrant</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2015-11-28 15:00:00" itemprop="dateCreated datePublished" datetime="2015-11-28T15:00:00+08:00">2015-11-28</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 12:33:40" itemprop="dateModified" datetime="2021-11-28T12:33:40+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%A4%A7%E5%AD%A6/" itemprop="url" rel="index"><span itemprop="name">大学</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <p>Vagrant是一个基于Ruby的工具，用于创建和部署虚拟化开发环境。也是一个可创建轻量级、高复用性和便于移植的开发环境的工具。</p>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2015/11/28/vagrant/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2015/11/15/putty/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2015/11/15/putty/" class="post-title-link" itemprop="url">使用putty工具访问virtualbox内的虚拟机</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2015-11-15 15:00:00" itemprop="dateCreated datePublished" datetime="2015-11-15T15:00:00+08:00">2015-11-15</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 12:45:53" itemprop="dateModified" datetime="2021-11-28T12:45:53+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%A4%A7%E5%AD%A6/" itemprop="url" rel="index"><span itemprop="name">大学</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <h2 id="搬运百度百科对putty的介绍"><a href="#搬运百度百科对putty的介绍" class="headerlink" title="搬运百度百科对putty的介绍:"></a>搬运百度百科对putty的介绍:</h2><blockquote>
<p>PuTTY是一个Telnet、SSH、rlogin、纯TCP以及串行接口连接软件。较早的版本仅支持Windows平台，在最近的版本中开始支持各类Unix平台，并打算移植至Mac OS X上。</p>
</blockquote>
<blockquote>
<p>随着Linux在服务器端应用的普及，Linux系统管理越来越依赖于远程。在各种远程登录工具中，Putty是出色的工具之一。Putty是一个免费的、Windows 32平台下的telnet、rlogin和ssh客户端，但是功能丝毫不逊色于商业的telnet类工具。</p>
</blockquote>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2015/11/15/putty/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2015/09/07/%E7%99%BE%E5%BA%A6/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2015/09/07/%E7%99%BE%E5%BA%A6/" class="post-title-link" itemprop="url">Baidu运维一面挂掉了</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2015-09-07 15:00:00" itemprop="dateCreated datePublished" datetime="2015-09-07T15:00:00+08:00">2015-09-07</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 11:03:13" itemprop="dateModified" datetime="2021-11-28T11:03:13+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%A4%A7%E5%AD%A6/" itemprop="url" rel="index"><span itemprop="name">大学</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <p>Baidu运维的1面挂掉了挂掉了挂掉了……</p>
<p>Baidu面试的安排很棒，无论是休息区的布置，还是面试的通知步骤，都很人性化，很能反映一个国际知名企业的作风，我对baidu的好感+1。</p>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2015/09/07/%E7%99%BE%E5%BA%A6/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2015/08/04/pat/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2015/08/04/pat/" class="post-title-link" itemprop="url">PAT刷题记录</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2015-08-04 15:00:00" itemprop="dateCreated datePublished" datetime="2015-08-04T15:00:00+08:00">2015-08-04</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 11:12:27" itemprop="dateModified" datetime="2021-11-28T11:12:27+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%A4%A7%E5%AD%A6/" itemprop="url" rel="index"><span itemprop="name">大学</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <p>2015/09/26更新，题目链接目前已经失效了，具体的题目自行百度吧。</p>
<p>最近刷了一下PAT的题目，主要刷了一套C语言基础。</p>
<p>这套题偏向基础，主要考察变量，循环，条件，数组，指针初步和结构体，后面的链表等内容没有涉及，解题主要从7月中旬开始，总共花费了大概2周的时间，对C语言的很多知识点做了回顾。</p>
<p>因为PAT属于OnlineJudge，出现“部分错误”时往往难以判断错误出现在哪里，所以有的题目提交了多次以确定测试点的测试内容，实在找不出问题的再Google看一下CSDN或者其他网站的解题思路，与自己的做比较，最终完整解决了85道题目中的接近80道。</p>
<p>这套题目中比较难的有：</p>
<ol>
<li>说反话 </li>
<li>复数四则运算 </li>
<li>简易连连看 </li>
<li>猴子选大王 </li>
<li>猜数字游戏 </li>
</ol>
<p>总的来说，解决这些问题对于我这个外行来说还是略费劲的，不过收获也是蛮大的，下一步还要补一下数据结构方面的东西。</p>
<p>就到这里吧。</p>

      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




    


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2015/05/23/debian8/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          <a href="/2015/05/23/debian8/" class="post-title-link" itemprop="url">在VirtualBox虚拟机中安装debian8</a>
        </h2>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2015-05-23 15:00:00" itemprop="dateCreated datePublished" datetime="2015-05-23T15:00:00+08:00">2015-05-23</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 12:30:50" itemprop="dateModified" datetime="2021-11-28T12:30:50+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%A4%A7%E5%AD%A6/" itemprop="url" rel="index"><span itemprop="name">大学</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
          <h2 id="关于debian"><a href="#关于debian" class="headerlink" title="关于debian"></a>关于debian</h2><p>debian是最具影响力的linux发行版之一，以稳定著称，许多其他的发行版的开发都以其为基础。debian使用apt-get进行包管理，因其安装较Ubuntu麻烦，属于已经入门linux者进行深入学习的选择之一吧。</p>
<h2 id="虚拟机安装debian8之前"><a href="#虚拟机安装debian8之前" class="headerlink" title="虚拟机安装debian8之前"></a>虚拟机安装debian8之前</h2><p>现在linux更多是作为一个辅助工具集，而且一些工作离不开Windows，所以使用VirtualBox虚拟机安装debian，选择的是debian的最新版本8.0，去官网选择了<code>debian-8.0.0-i386-DVD-1.iso</code>镜像。<br>（DVD镜像相较于LiveCD，包含更多常用软件，是更好的选择。）</p>
<h2 id="配置一个基本能用的debian8"><a href="#配置一个基本能用的debian8" class="headerlink" title="配置一个基本能用的debian8"></a>配置一个基本能用的debian8</h2><h3 id="１．安装DVD-1-iso的debian系统"><a href="#１．安装DVD-1-iso的debian系统" class="headerlink" title="１．安装DVD-1.iso的debian系统"></a>１．安装DVD-1.iso的debian系统</h3><p>VirtualBox安装系统的过程很简单，安装debian也一样，只需要创建虚拟机后选择ISO启动然后一路next就行。其中硬盘分区需要注意，根据自己需要设置大小，我给虚拟机总共分了22GB，如果要在虚拟机中安装大型软件（比如我安装了Texlive完整版）的话，需要把<code>/</code>分区分大一些，或者只分一个<code>/</code>区。别的无需多言。</p>
<h3 id="２．通过DVD-1-iso安装必要工具"><a href="#２．通过DVD-1-iso安装必要工具" class="headerlink" title="２．通过DVD-1.iso安装必要工具"></a>２．通过DVD-1.iso安装必要工具</h3><p>安装完成，进入debian虚拟机，会发现分辨率不合适，没有Vim，<code>sudo</code>命令找不到和没有中文输入法之类的问题。所以需要挂载刚才安装用的那个DVD的ISO，安装一些DVD中的软件，并做些设置，为从官方源安装软件做准备，具体操作流程如下：</p>
<ul>
<li>执行<code>su</code>切换到ROOT权限，再执行：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">apt-get install sudo vim git</span><br><span class="line">apt-get install build-essential linux-headers-$(uname -r)</span><br><span class="line">apt-get install fcitx-frontend-gtk3</span><br><span class="line"><span class="comment">#这一步会通过DVD安装必要的编译工具，Vim，Git，sudo和fcitx输入法的前端。</span></span><br></pre></td></tr></table></figure>

<ul>
<li>修改<code>/etc/sudoers</code>，在<code>workzmp ALL=(ALL:ALL) ALL</code>后面添加一行，内容即<code>yourusername ALL=(ALL:ALL)</code>，然后保存退出。</li>
</ul>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="comment">#这一步会解决之后使用&quot;sudo&quot;出现不在suoder用户组中的问题</span></span><br></pre></td></tr></table></figure>

<ul>
<li>退出<code>su</code>，撤出DVD-1.iso。</li>
</ul>
<h3 id="安装VirtualBox增强工具"><a href="#安装VirtualBox增强工具" class="headerlink" title="安装VirtualBox增强工具"></a>安装VirtualBox增强工具</h3><ul>
<li>挂载VirtualBox的增强工具ISO（名为VBoxGuestAdditions.iso），安装解决分辨率和共享文件夹问题的增强工具。</li>
</ul>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="built_in">cd</span> /media/cdrom0 <span class="comment">#即上述ISO的挂载位置</span></span><br><span class="line">sudo sh ./VBoxLinuxAdditions.run</span><br><span class="line"><span class="comment">#如果出问题，根据提示，找到是否没有安装好上面的&quot;build-essential&quot;和&quot;linux-headers-$(uname -r)&quot;</span></span><br></pre></td></tr></table></figure>

<ul>
<li>重启，全屏，看分辨率是否能够自适应，共享文件夹是否显示。</li>
<li>上面能够看到的共享文件夹目前尚无法进行复制移动等操作，需要设置权限，将用户添加到<code>vboxsf</code>组中重启即可，默认的共享目录在<code>/media/sf_*</code>：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">sudo adduser yourusername vboxsf</span><br></pre></td></tr></table></figure>
<h3 id="通过官方源安装必要工具"><a href="#通过官方源安装必要工具" class="headerlink" title="通过官方源安装必要工具"></a>通过官方源安装必要工具</h3><ul>
<li>修改源列表，添加并更新官方源。</li>
</ul>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">sudo vim /etc/apt/sources.list</span><br><span class="line"><span class="comment">#去ustc的linux镜像或者其他镜像站查看debian的源列表，加在上面的文件中，执行更新。</span></span><br><span class="line">sudo apt-get update</span><br></pre></td></tr></table></figure>
<ul>
<li>安装fcitx的ui包，设置一番重启即可正常使用fcitx中文输入法</li>
</ul>
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">sudo apt-get install fcitx-ui-classic fcitx-ui-light </span><br></pre></td></tr></table></figure>
<h2 id="配置个性化开发环境的debian8"><a href="#配置个性化开发环境的debian8" class="headerlink" title="配置个性化开发环境的debian8"></a>配置个性化开发环境的debian8</h2><h3 id="Java"><a href="#Java" class="headerlink" title="Java"></a>Java</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">sudo apt-get install openjdk-7-jdk openjdk-7-doc</span><br></pre></td></tr></table></figure>
<h3 id="Ruby-gem-jekyll"><a href="#Ruby-gem-jekyll" class="headerlink" title="Ruby+gem+jekyll"></a>Ruby+gem+jekyll</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">sudo apt-get install ruby ruby-dev gem</span><br><span class="line"><span class="comment">#执行&quot;ruby -v&quot;查看ruby版本</span></span><br><span class="line"><span class="comment">#执行&quot;gem -v&quot;查看gem版本</span></span><br><span class="line">sudo apt-get install jekyll rake </span><br><span class="line"><span class="comment">#执行&quot;jekyll -v&quot;或者&quot;gem list&quot;查看jekyll是否安装成功</span></span><br></pre></td></tr></table></figure>
<h3 id="Node-js-npm-gitbook-pandoc"><a href="#Node-js-npm-gitbook-pandoc" class="headerlink" title="Node.js+npm+gitbook+pandoc"></a>Node.js+npm+gitbook+pandoc</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">sudo apt-get install nodejs nodejs-legacy npm</span><br><span class="line">sudo npm install -g cnpm --registry=https://registry.npm.taobao.org</span><br><span class="line">sudo cnpm install gitbook-cli -g</span><br><span class="line">sudo gitbook versions:install latest</span><br><span class="line">sudo gitbook versions:install 2.0.1</span><br><span class="line"><span class="comment">#&quot;gitbook versions&quot;查看gitbook的最新版和我需要的2.0.1版本是否安装成功。</span></span><br><span class="line"><span class="comment">#&quot;sudo gitbook serve -v 2.0.1&quot;可以以指定版本的gitbook运行serve</span></span><br><span class="line">sudo apt-get install pandoc</span><br><span class="line"><span class="comment">#linux下最强的文档格式转换工具，支持tex,md,html,pdf</span></span><br></pre></td></tr></table></figure>

<h2 id="尾声"><a href="#尾声" class="headerlink" title="尾声"></a>尾声</h2><p>经过上述配置，现在的debian8既可以正常全屏，输入中文，使用git和vim以及安装软件包；又可以用jekyll写博客站点，使用gitbook和tex做网站电子书，用C编程……先到这里吧。</p>
<blockquote>
<p>2015.5.23最后更新</p>
</blockquote>

      
    </div>

    
    
    

    <footer class="post-footer">
        <div class="post-eof"></div>
      
    </footer>
  </article>
</div>




  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/"><i class="fa fa-angle-left" aria-label="上一页"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/3/"><i class="fa fa-angle-right" aria-label="下一页"></i></a>
  </nav>

</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">zhengmingpei</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/pisces/" rel="noopener" target="_blank">NexT.Pisces</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script>

  





  





</body>
</html>
